package admin

import (
	"github.com/gogf/gf/v2/frame/g"
	"miaoyu/internal/model/admin"
	"miaoyu/internal/model/entity"
)

type MenuIndexReq struct {
	g.Meta `method:"get" tags:"menu" summary:"menu"`
}
type MenuIndexRes struct {
}

type MenuListDoReq struct {
	g.Meta   `method:"get" tags:"menu" summary:"menu"`
	Keywords string `p:"keywords" v:""`
}
type MenuListDoRes struct {
	g.Meta   `mime:"application/json"`
	MenuList []entity.MyMenu `json:"menuList"`
}

type MenuAddReq struct {
	g.Meta   `method:"get" tags:"menu" summary:"menu"`
	ParentId int `p:"parentId"`
}
type MenuAddRes struct {
}
type MenuEditReq struct {
	g.Meta `method:"get" tags:"menu" summary:"menu"`
	MenuId int64 `p:"menuId"  v:"required#菜单信息不能为空"`
}
type MenuEditRes struct {
}

/*
	menu请求

activeMenu:""
affix:0
bak:""
breadcrumb:1
component:"#"
hidden:1
icon:"ep:menu"
id:2
menuType:10
noCache:0
noTagsView:0
orderNum:200
parentId:["guide", "disciplines", "feedback"]
path:"/dashboard"
redirect:""
state:1
title:"测试页面"
uniname:"Dashboard"
*/
type MenuSubmitDoReq struct {
	g.Meta `tags:"menu" summary:"menu"`
	admin.MenuInput
}
type MenuSubmitDoRes struct {
}
type MenuInfoDoReq struct {
	g.Meta `method:"get" tags:"menu" summary:"menu"`
	ResId  int64 `p:"resId"  v:"required#菜单信息不能为空"`
}
type MenuInfoDoRes struct {
}
type MenuDictInfoDoReq struct {
	g.Meta `method:"get" tags:"menu" summary:"menu"`
}
type MenuDictInfoDoRes struct {
}

type MenuDelDoReq struct {
	g.Meta `method:"post" tags:"menu" summary:"menu"`
	ResId  []int64 `p:"ids"`
}
type MenuDelDoRes struct {
}
